# coding=utf-8

"""
    Created by Kalyter on 2017-12-13.
"""
from learning.util.log_util import get_logger

logger = get_logger()


class Job(object):
    """作业基类"""

    name = ''

    def __init__(self, app):
        self.app = app

    @classmethod
    def from_app(cls, app):
        return cls(app)

    def run(self, *args, **kwargs):
        """执行具体策略"""
        raise NotImplemented

    @property
    def logger(self):
        return logger
